all: smooth

smooth: smooth.o
	g++ -Wno-write-strings -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -o smooth main.c pbmpak.c smooth.o -lcuda -lcudart

smooth.o:
	nvcc -c -arch=sm_20 smooth.cu

clean:
	rm -rf *o smooth

teste:
	/usr/bin/time -f "%e" ./smooth
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
	/usr/bin/time -f "%e" ./smooth	
